package ru.mcfr.oxygen.framework.operations.table;

import ro.sync.ecss.extensions.api.AuthorAccess;
import ro.sync.ecss.extensions.api.AuthorOperationException;
import ro.sync.ecss.extensions.api.AuthorTableCellSpanProvider;
import ro.sync.ecss.extensions.api.node.AuthorElement;
import ro.sync.ecss.extensions.api.node.AuthorNode;
import ro.sync.ecss.extensions.commons.table.operations.AuthorTableHelper;

/**
 * Created by IntelliJ IDEA.
 * User: ws
 * Date: 09.03.11
 * Time: 16:18
 * To change this template use File | Settings | File Templates.
 */
public class CustomTableHelper implements AuthorTableHelper {
    public boolean isTableCell(AuthorNode authorNode) {
        return "ячейка".equals(authorNode.getName());  //To change body of implemented methods use File | Settings | File Templates.
    }

    public boolean isTableRow(AuthorNode authorNode) {
        return "строка".equals(authorNode.getName());  //To change body of implemented methods use File | Settings | File Templates.
    }

    public boolean isTable(AuthorNode authorNode) {
        return "таблица".equals(authorNode.getName());  //To change body of implemented methods use File | Settings | File Templates.
    }

    public AuthorTableCellSpanProvider getTableCellSpanProvider(AuthorElement authorElement) {
        return null;  //To change body of implemented methods use File | Settings | File Templates.
    }

    public void checkTableColSpanIsDefined(AuthorAccess authorAccess, AuthorTableCellSpanProvider authorTableCellSpanProvider, AuthorElement authorElement) throws AuthorOperationException {
        //To change body of implemented methods use File | Settings | File Templates.
    }

    public void updateTableColSpan(AuthorAccess authorAccess, AuthorTableCellSpanProvider authorTableCellSpanProvider, AuthorElement authorElement, int i, int i1) throws AuthorOperationException {
        //To change body of implemented methods use File | Settings | File Templates.
    }

    public void updateTableRowSpan(AuthorAccess authorAccess, AuthorElement authorElement, int i) {
        //To change body of implemented methods use File | Settings | File Templates.
    }

    public void updateTableColumnNumber(AuthorAccess authorAccess, AuthorElement authorElement, int i) {
        //To change body of implemented methods use File | Settings | File Templates.
    }

    public void updateTableRowNumber(AuthorAccess authorAccess, AuthorElement authorElement, int i) {
        //To change body of implemented methods use File | Settings | File Templates.
    }
}
